//
//  ByCommonCache.m
//  beibei_ios
//
//  Created by pro on 16/5/10.
//  Copyright © 2016年 hebidu. All rights reserved.
//

#import "ByCommonCache.h"

#define KEY_LANGUAGE @"KEY_LANGUAGE"                // 语言
#define KEY_UNIT @"KEY_UNIT"                        // 单位

@implementation ByCommonCache

+ (void)setSystemLanguage:(ByLanguageMode)mode {
    
    [ByCoreCacheSqlite3 setObjectWithKey:KEY_LANGUAGE value:@(mode)];
}
+ (NSNumber *)getSystemLanguage {
    
    NSNumber *mode = [ByCoreCacheSqlite3 getValueWithKey:KEY_LANGUAGE];
    return mode;
}


+ (void)setSystemUnit:(int)unit {
    
    [ByCoreCacheSqlite3 setObjectWithKey:KEY_UNIT value:@(unit)];
}
+ (NSNumber *)getSystemUnit {
    
    NSNumber *mode = [ByCoreCacheSqlite3 getValueWithKey:KEY_UNIT];
    return mode;
}



@end
